package com.hollycrm.hollysqm.core.index.service.impl;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.apache.solr.client.solrj.SolrServerException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import com.hollycrm.hollysqm.util.Constant;

/**
 * V8索引库查询业务层
 * @author jianglong
 * @date 2017年3月29日 下午3:58:17
 */
@Service
public class V8IndexSearchServiceImpl extends IndexSearchServiceImpl {
	
	@Value("${solr.v8.collection}")
	private String collection;	
	
	/**
	 * 设置Solr索引集
	 * @param collection
	 */
	public void setCollection() {
		super.setCollection(collection);
	}	
	
	/**
     * 返回查询结果ID集合
     * @param qs
     * @param paramMap
     * @return
     * @throws IOException
     * @throws SolrServerException
     */
	public List<String> queryResultIds(String qs, Map<String,String> paramMap) throws IOException,SolrServerException{
		return super.queryResultIds(qs, paramMap, collection, Constant.acceptTime);
	}
}
